#pragma once
#include"Slist.h"

void TestSlist()
{
	SLN* Plist = NULL;
	SLTPushBack(&Plist, 'a');
	SLTPushBack(&Plist, 'b');
	SLTPushBack(&Plist, 'c');
	SLTPushBack(&Plist, 'd');
	SLTPushFront(&Plist, 'e');
	SLTPushFront(&Plist, 'f');
	SLTPushFront(&Plist, 'g');
	SLTPopBack(&Plist);
	SLTPopFront(&Plist);
	SLN* pos = SLTDataFind(Plist, 'c');
	if (pos != NULL)
	{
		SLTInsert(&Plist, pos,'x');
		SLTErase(&Plist, pos);
	}
	SLTPrint(Plist);
}

int main()
{
	TestSlist();
	return 0;
}